package com.aaa.service.impl;

import com.aaa.dao.DictDataDao;
import com.aaa.dao.DictTypeDataDao;
import com.aaa.entity.DictData;
import com.aaa.entity.DictType;
import com.aaa.service.DictTypeDataService;
import com.aaa.vo.Result;
import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @BelongsPackage: com.aaa.service.impl
 * @Description: 1.0
 * @CreateTime: 2023-03-28  17:59
 * @Author: ql
 */
@Service
public class DictTypeDataServiceImpl implements DictTypeDataService {

    @Autowired
    private  DictTypeDataDao dictTypeDataDao;

    @Override
    public Result<List<DictType>> selectAllDictType() {
        QueryWrapper<DictType> wrapper = new QueryWrapper<>();
        wrapper.eq("status",0);
        List<DictType> dictTypes = dictTypeDataDao.selectList(wrapper);
        return new Result<>(2000,"ok",dictTypes);
    }

}
